package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 反馈业务对象 ykj_user_feedback
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserFeedbackBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 类型 */
    @NotNull(
            message = "类型不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer type;

    /** 内容 */
    @NotBlank(
            message = "内容不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String content;

    /** 联系方式 */
    @NotBlank(
            message = "联系方式不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String contract;

    /** 图片 */
    @NotBlank(
            message = "图片不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String imgs;

    /** 用户id */
    @NotNull(
            message = "用户id不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    private Long status;

    private Long platformId;
}
